package com.kazarus.examplx00001;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.Gravity;
import android.widget.TextView;
import android.widget.Button;
import android.widget.Toast;

public class Examplx00001 extends Activity 
{
    /** Called when the activity is first created. */
	private TextView Labl_Titl; 
	private Button   Btnx_Addx;
	private Button   Btnx_Edit;
	private Button   Btnx_Delt;
	private Button   Btnx_Demo;
	
	
    @Override
    public void onCreate(Bundle savedInstanceState) 
    {
       
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        SetInitialize();
    }   
    
    public void SetInitialize()
    {
    	
        Labl_Titl = (TextView)this.findViewById(R.id.Labl_Titl);
        Labl_Titl.setGravity(Gravity.CENTER); 
        Labl_Titl.setText("2012_03_05_22_19_00_examplx00001");
        
        Btnx_Addx = (Button)this.findViewById(R.id.Btnx_Addx);
        Btnx_Addx.setText("btnxaddx");
        
        Btnx_Edit = (Button)this.findViewById(R.id.Btnx_Edit);
        Btnx_Edit.setText("btnxedit");
        
        Btnx_Delt = (Button)this.findViewById(R.id.Btnx_Delt);
        Btnx_Delt.setText("btnxdelt");
        Btnx_Delt.setOnClickListener(OnBtnxDeltClick);
        
        Btnx_Demo = (Button)this.findViewById(R.id.Btnx_Demo);
        Btnx_Demo.setText("btnxdemo");
        Btnx_Demo.setOnClickListener(new View.OnClickListener() 
        {
			
			@Override
			public void onClick(View v) 
			{
				Toast.makeText(Examplx00001.this, "you cliked btnx_demo", Toast.LENGTH_SHORT).show();
			}
		});   
    }
    
    View.OnClickListener OnBtnxDeltClick=new View.OnClickListener(){
    	 
		@Override
		public void onClick(View v) 
		{
			Toast.makeText(Examplx00001.this, "you clicked BtnxDelt", Toast.LENGTH_SHORT).show();
			
		}
 
    };    
    
    View.OnClickListener OnBtnxAddxClick=new View.OnClickListener() 
    {
		
		@Override
		public void onClick(View v) 
		{
			// TODO Auto-generated method stub
			
		}
	};
    
    
}